package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.ConnectionObject;

/**
 * @author Bright Lee
 */
public final class SetConnectionStatement implements SqlConnectionStatement, Statement {

    private int beginIndex;
    private int endIndex;
    private ConnectionObject connectionObject;

    public SetConnectionStatement(int beginIndex, ConnectionObject connectionObject) {
        this.beginIndex = beginIndex;
        this.endIndex = connectionObject.getEndIndex();
        this.connectionObject = connectionObject;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public ConnectionObject getConnectionObject() {
        return connectionObject;
    }

}
